package w2

//元组
object Yuanzu {
  def main(args: Array[String]): Unit = {
    val a = new Tuple4("dog", 3.14, 100, false)
    println(a._2)
    var b = ("hadoop", "spark", "flink", 4)
    println(b._3)
    println(">>>>>>>>>>>>>>")
    ////println(b[0]) error
    println("---------迭代-------------")
    b.productIterator.foreach(println)
  }
}
